﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class TestCache : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int cols = 50;
        int rows = 500;
        DataSet ds = new DataSet();
        ds.Tables.Add("test");
        for (int i = 0; i < cols; i++)
            ds.Tables["test"].Columns.Add(new DataColumn(i.ToString()));
        for(int i=0; i< rows; i++)
        {
            
            DataRow dr = ds.Tables["test"].NewRow();
            for(int j=0;j<cols; j++)
            {
                dr[j] = i+j;
            }
            ds.Tables["test"].Rows.Add(dr);
            
        }
        this.GridView1.DataSource = ds;
        this.DataBind();
    }
}
